<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test</title>
</head>
<body>
		<s:if test="#request.cate == null || #request.cate.size() == 0 ">
			没有任何新闻！
		</s:if>
		<s:else>
			<table border="1" cellpadding="10" cellspacing="0" width="1000px">
				<tr>
					<td>ID</td>
					<td>标题</td>
					<td>创建时间</td>					
				</tr>
				<s:iterator value="#request.cate">
					<tr>
						<td>${id}</td>
						<td>${title}</td>
						<td>
							<s:date name="createDate" format="yyyy-MM-dd hh:mm:ss"/>
						</td>
					</tr>
				</s:iterator>
			</table>
		</s:else>
</body>
</html>